package com.yzs.core.bean

import androidx.annotation.Keep
import com.yzs.core.http.ApiException

@Keep
data class NetworkViewState(
    val content: String = "加载中...",
    val pageStatus: PageStatus = PageStatus.SUCCESS
)

@Keep
sealed class PageStatus {
    object LOADING : PageStatus()
    object SUCCESS : PageStatus()
    data class FAILURE(val apiException: ApiException) : PageStatus()
}